//src/api/user/index.js

import service from "../request.js";

// 登录接口
export function LoginInfo(params) {
  return service({
    method: "POST",
    url: "/Login/login",
    data: params,
  });
}
// 查询列表接口
export function getProcedureList(params) {
  return service({
    method: "POST",
    url: "/Login/getProcedureList",
    data: params,
  });
}

// 查询列表接口
export function getProductionRecords(params) {
  return service({
    method: "POST",
    url: "/Login/getProductionRecords",
    data: params,
  });
}

// 查询列表接口
export function getProductionDetailList(params) {
  return service({
    method: "POST",
    url: "/Login/getProductionDetailList",
    data: params,
  });
}


// 获取条码打印详情列表
export const getPrintDataList = (params) => {
  return service({
    url: '/Login/getPrintDataList', 
    method: 'post',
    data: params
  });
};

// 获取报警记录接口
export const getErrorStationList = (params) => {
  return service({
    url: '/Login/getErrorStationList', // 后端接口地址
    method: 'post',
    data: params
  });
};




// export function getMenuList(query) {
//   return service({
//     method: "get",
//     url: "/permission/getMenuList",
//     data: query,
//     needToken: true // 需要 Token
//   });
// }
// export function getMenuList(query) {
//   return service({
//     method: "get",
//     url: "/permission/getMenuList",
//     data: query,
//   });
// }

export function getUserList(query) {
  return service({
    method: "get",
    url: "/permission/UserList",
    data: query,
  });
}

export function listUpdate(query) {
  return service({
    method: "post",
    url: "/permission/listUpdate",
    data: query,
  });
}
export function Newslist(query) {
  return service({
    method: "get",
    url: "/permission/Newslist",
    data: query,
  });
}
export function orderLists(query) {
  return service({
    method: "get",
    url: "/permission/orderLists",
    data: query,
  });
}

export function cardlists(query) {
  return service({
    method: "get",
    url: "/permission/cardlists",
    data: query,
  });
}